﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Model.PessoaModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <p>
        <%: Html.ActionLink("Create New", "Create")%>
    </p>
    <table>
        <tr>
            <th>
            </th>
            <th>
                pnome
            </th>
            <th>
                papelido
            </th>
            <th>
                pdatanasc
            </th>
            <th>
                pendereco
            </th>
            <th>
                pbairro
            </th>
            <th>
                pcomplemento
            </th>
            <th>
                pcep
            </th>
            <th>
                pcidade
            </th>
            <th>
                pestado
            </th>
            <th>
                pcelular
            </th>
            <th>
                pemail
            </th>
            <th>
                pcpf
            </th>
            <th>
                pcnpj
            </th>
            <th>
                IDpessoa
            </th>
            <th>
                pflag
            </th>
        </tr>
        
        <% foreach  (var item  in Model)
           { %>
           
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new {  id=item.IDpessoa  }) %>
                |
                <%: Html.ActionLink("Detalhes", "Details", new {  id=item.IDpessoa }) %>
                |
                <%: Html.ActionLink("Exclusão", "Delete", new { id=item.IDpessoa }) %>
            </td>
            <td>
                <%: item.pnome %>
            </td>
            <td>
                <%: item.papelido %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.pdatanasc) %>
            </td>
            <td>
                <%: item.pendereco %>
            </td>
            <td>
                <%: item.pbairro %>
            </td>
            <td>
                <%: item.pcomplemento %>
            </td>
            <td>
                <%: item.pcep %>
            </td>
            <td>
                <%: item.pcidade %>
            </td>
            <td>
                <%: item.pestado %>
            </td>
            <td>
                <%: item.pcelular %>
            </td>
            <td>
                <%: item.pemail %>
            </td>
            <td>
                <%: item.pcpf %>
            </td>
            <td>
                <%: item.pcnpj %>
            </td>
            <td>
                <%: item.IDpessoa %>
            </td>
            <td>
                <%: item.pflag %>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
